package com.heima.api.behavior;

import com.heima.model.behavior.dtos.LikesBehaviorDto;
import com.heima.model.behavior.pojos.ApLikesBehavior;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "点赞行为控制层")
public interface ApLikesBehaviorControllerApi {
    /**
     * 保存点赞行为
     * @param dto
     * @return
     */
    @ApiOperation("保存点赞行为")
    ResponseResult like(LikesBehaviorDto dto);
    @ApiOperation("根据文章ID 和 实体ID 查询点赞数据")
    ApLikesBehavior findLikeByArticleIdAndEntryId(Long articleId,Integer entryId,Short type);
}
